﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/WebMaster/MasterPage.master"
    Theme="WebMaster" Inherits="SouthernLand.WebMaster.Photo" CodeBehind="Photo.aspx.cs" %>

<%@ Register Src="~/WebMaster/Controls/Title.ascx" TagName="Title" TagPrefix="uc" %>
<asp:Content ContentPlaceHolderID="PageContent" runat="server">
    <uc:Title runat="server" ResourceKey='Photo' />
    <table border="0" align="center">
        <tr>
            <td style="padding-top: 15pt; color: Red" class="text" align="center">
                <b>Cập Nhật Hình Ảnh Slide Show</b>
            </td>
        </tr>
        <tr>
            <td align="center">
                <br />
                <asp:Label runat="server" ID="lblMsg" Font-Bold="true" ForeColor="blue"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="padding-top: 15pt; line-height: 20px;" class="text" align="center">
                <b>
                    <asp:FileUpload runat="server" ID="PhotoFile" CssClass="Textbox" />
                    <asp:Button runat="server" ID="btSave" Text=" Upload " OnClick="btSave_Click" />
                </b>
                <br />
                (File hình phải là kiểu .jpg và kích thước là 576 x 231)
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:DataList ID="ItemsDataList" runat="server" Width="100%" RepeatDirection="Horizontal"
                    EnableViewState="False" CellPadding="10" ItemStyle-HorizontalAlign="left" RepeatColumns="1">
                    <ItemTemplate>
                        <table border="0" align="left" style="table-layout: fixed;">
                            <tr>
                                <td align="center" class="border-image-detail">
                                    <img width="576" height="231" src="<%=Globals.ApplicationPath %>UserUpload/SlideShow/<%#Container.DataItem %>" />
                                </td>
                            </tr>
                            <tr>
                                <td align="center" style="padding-top: 3pt; padding-bottom: 10px;" valign="top">
                                    <a href="?Action=Delete&Image=<%#	Container.DataItem %>" onclick="return confirm('Bạn thật sự muốn xóa hình này?')">
                                        [xóa hình này]</a>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList>
            </td>
        </tr>
    </table>
</asp:Content>
